package com.example.h5_share_demo.controller;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import java.util.*;
import java.util.stream.Collectors;

/**
 * @ClassName Main
 * @Description
 * @Author zhangsw
 * @Date 2021/1/19 15:42
 * @Version 1.0
 */
public class Main {
    public static void main(String[] args) {
        String jsonParam = "{\n" +
                "  \"ROOT\": {\n" +
                "    \"HEADER\": {},\n" +
                "    \"BODY\": {\n" +
                "      \"OUT_DATA\": {\n" +
                "        \"POSITION_INFO_LIST\": [\n" +
                "          {\n" +
                "            \"ACT_LIST\": [\n" +
                "              {\n" +
                "                \"REWARD\": \"0\",\n" +
                "                \"ACT_ID\": \"4841731711912960\",\n" +
                "                \"CONTENT_LIST\": [\n" +
                "                  {\n" +
                "                    \"CONTENT_ID\": \"5279030793968643\",\n" +
                "                    \"ORDER_NO\": \"0\",\n" +
                "                    \"CONTENT_DETAIL_LIST\": [\n" +
                "                      {\n" +
                "                        \"PARAM_LIST\": [\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"MARKETING_DESCRIPTION\",\n" +
                "                            \"CONTENT_VALUE\": \"【策略 】该用户为5元201905-电信无忧卡201905套餐，近三个月平均费用5.0元，上月流量0.0M，上月通话时长0.0分钟，推荐扫码升级129元档5G套餐，享受8折*12个月优惠。\\n【话术】我们正在开展优质客户回馈活动，现在升级5G套餐可享1年8折优惠，每月仅需103元就能享受129元5G服务，流量增至30G、语音通话500分钟，宽带300兆，全家一起共享。现在办理还能优惠领取优品包，超清大屏看剧更清晰，扫一扫二维码即可线上办理。\"\n" +
                "                          },\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"POLICY_LIST\",\n" +
                "                            \"CONTENT_VALUE\": [\n" +
                "                              {\n" +
                "                                \"PROD_OFFER_NAME\": \"费用减免_套餐打折合约8折12个月_202002\",\n" +
                "                                \"PROD_OFFER_ID\": \"807971442\"\n" +
                "                              }\n" +
                "                            ]\n" +
                "                          },\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"ACT_REDIRECT_TYPE\",\n" +
                "                            \"CONTENT_VALUE\": \"0\"\n" +
                "                          },\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"MATERIAL_CODE\"\n" +
                "                          }\n" +
                "                        ]\n" +
                "                      }\n" +
                "                    ]\n" +
                "                  }\n" +
                "                ],\n" +
                "                \"END_DATE\": \"2021-12-31 00:00:00\",\n" +
                "                \"ORDER_NO\": 1,\n" +
                "                \"ACT_DESC\": \"存量非5G套餐用户，迁转129档和169档5G套餐\",\n" +
                "                \"ACT_TYPE\": \"1000\",\n" +
                "                \"PRD_INST_ID\": \"20035135030\",\n" +
                "                \"SERVICE_NBR\": \"18119642738\",\n" +
                "                \"START_DATE\": \"2020-03-16 00:00:00\",\n" +
                "                \"CUST_NAME\": \"张士威\",\n" +
                "                \"ACT_NAME\": \"抽奖升四星-5G版\",\n" +
                "                \"SEQ_ID\": \"bb6e1d7b4bf1b31d7ba6db7e68060dea|20035135030|551|4841731711912960|4970415776369664|1009|POSITION_09_01\",\n" +
                "                \"ACT_BUSI_TYPE\": \"95\",\n" +
                "                \"CUST_GROUP_ID\": \"4970415776369664\",\n" +
                "                \"REGION_CODE\": \"551\",\n" +
                "                \"USER_LABEL_LIST\": [\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"服务号码\",\n" +
                "                    \"ORDER_NO\": 1,\n" +
                "                    \"USER_LABEL_KEY\": \"service_nbr\",\n" +
                "                    \"USER_LABEL_VALUE\": \"18119642738\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"套餐名称\",\n" +
                "                    \"ORDER_NO\": 2,\n" +
                "                    \"USER_LABEL_KEY\": \"basic_group_name\",\n" +
                "                    \"USER_LABEL_VALUE\": \"201905-电信无忧卡201905\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"近3个月平均消费（元）\",\n" +
                "                    \"ORDER_NO\": 3,\n" +
                "                    \"USER_LABEL_KEY\": \"net_fee\",\n" +
                "                    \"USER_LABEL_VALUE\": \"5.0\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"终端型号\",\n" +
                "                    \"ORDER_NO\": 4,\n" +
                "                    \"USER_LABEL_KEY\": \"term_type\",\n" +
                "                    \"USER_LABEL_VALUE\": \"维沃VIV-V1986A(5G)\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"套餐赠送内容\",\n" +
                "                    \"ORDER_NO\": 5,\n" +
                "                    \"USER_LABEL_KEY\": \"ofr_zs_content\",\n" +
                "                    \"USER_LABEL_VALUE\": \"0分钟/0G\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"近3月套餐平均流量（M）\",\n" +
                "                    \"ORDER_NO\": 6,\n" +
                "                    \"USER_LABEL_KEY\": \"avg_flux_3m\",\n" +
                "                    \"USER_LABEL_VALUE\": \"0\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"近3月套餐平均主叫时长（分钟）\",\n" +
                "                    \"ORDER_NO\": 7,\n" +
                "                    \"USER_LABEL_KEY\": \"avg_dur_3m\",\n" +
                "                    \"USER_LABEL_VALUE\": \"0\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"补贴\",\n" +
                "                    \"ORDER_NO\": 8,\n" +
                "                    \"USER_LABEL_KEY\": \"btmc_date_flag\",\n" +
                "                    \"USER_LABEL_VALUE\": \"无\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"产品结构\",\n" +
                "                    \"ORDER_NO\": 9,\n" +
                "                    \"USER_LABEL_KEY\": \"cp_structure_flag\",\n" +
                "                    \"USER_LABEL_VALUE\": \"1移动+0宽带+0iTV\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"宽带猫支持速率\",\n" +
                "                    \"ORDER_NO\": 10,\n" +
                "                    \"USER_LABEL_KEY\": \"cat_speed\",\n" +
                "                    \"USER_LABEL_VALUE\": \"\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"APP偏好\",\n" +
                "                    \"ORDER_NO\": 11,\n" +
                "                    \"USER_LABEL_KEY\": \"app_fav_flag\",\n" +
                "                    \"USER_LABEL_VALUE\": \"视频(轻微)/音乐(无)\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"升5G套餐意愿\",\n" +
                "                    \"ORDER_NO\": 12,\n" +
                "                    \"USER_LABEL_KEY\": \"jz_prob\",\n" +
                "                    \"USER_LABEL_VALUE\": \"一般\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"智慧家庭需求\",\n" +
                "                    \"ORDER_NO\": 13,\n" +
                "                    \"USER_LABEL_KEY\": \"smart_family_flag\",\n" +
                "                    \"USER_LABEL_VALUE\": \"无\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"迁转目标价值量\",\n" +
                "                    \"ORDER_NO\": 14,\n" +
                "                    \"USER_LABEL_KEY\": \"tar_chrg\",\n" +
                "                    \"USER_LABEL_VALUE\": \"129\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"终端礼包活动价值量\",\n" +
                "                    \"ORDER_NO\": 15,\n" +
                "                    \"USER_LABEL_KEY\": \"term_lb_chrg\",\n" +
                "                    \"USER_LABEL_VALUE\": \"\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"智家偏好\",\n" +
                "                    \"ORDER_NO\": 16,\n" +
                "                    \"USER_LABEL_KEY\": \"smart_family_fav\",\n" +
                "                    \"USER_LABEL_VALUE\": \"-1\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"折扣\",\n" +
                "                    \"ORDER_NO\": 17,\n" +
                "                    \"USER_LABEL_KEY\": \"zhekou\",\n" +
                "                    \"USER_LABEL_VALUE\": \"8折\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"可否一人一码加载\",\n" +
                "                    \"ORDER_NO\": 18,\n" +
                "                    \"USER_LABEL_KEY\": \"if_pd_yrym\",\n" +
                "                    \"USER_LABEL_VALUE\": \"1\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"可加副卡数\",\n" +
                "                    \"ORDER_NO\": 19,\n" +
                "                    \"USER_LABEL_KEY\": \"fk_add_num\",\n" +
                "                    \"USER_LABEL_VALUE\": \"4\"\n" +
                "                  }\n" +
                "                ]\n" +
                "              },\n" +
                "              {\n" +
                "                \"REWARD\": \"0\",\n" +
                "                \"ACT_ID\": \"4142072275684352\",\n" +
                "                \"CONTENT_LIST\": [\n" +
                "                  {\n" +
                "                    \"CONTENT_ID\": \"5279030793968645\",\n" +
                "                    \"ORDER_NO\": \"0\",\n" +
                "                    \"CONTENT_DETAIL_LIST\": [\n" +
                "                      {\n" +
                "                        \"PARAM_LIST\": [\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"MARKETING_DESCRIPTION\",\n" +
                "                            \"CONTENT_VALUE\": \"【策略】已开通VoLTE、推荐打开手机高清通话开关。【话术】您已开通VoLTE高清通话，现开启高清通话开关，即刻享受通话更清晰、接通更快、边通话边上网等全新体验。\"\n" +
                "                          },\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"ACT_REDIRECT_TYPE\",\n" +
                "                            \"CONTENT_VALUE\": \"0\"\n" +
                "                          },\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"MATERIAL_CODE\"\n" +
                "                          }\n" +
                "                        ]\n" +
                "                      }\n" +
                "                    ]\n" +
                "                  }\n" +
                "                ],\n" +
                "                \"END_DATE\": \"2021-12-31 00:00:00\",\n" +
                "                \"ORDER_NO\": 2,\n" +
                "                \"ACT_DESC\": \"1、针对终端支持VoLTE，如用户未开通VoLTE功能，推介体验VoLTE；\\n2、针对已开通VoLTE的用户，如用户未使用，提醒用户打开终端开关\",\n" +
                "                \"ACT_TYPE\": \"1000\",\n" +
                "                \"PRD_INST_ID\": \"20035135030\",\n" +
                "                \"SERVICE_NBR\": \"18119642738\",\n" +
                "                \"START_DATE\": \"2018-11-08 00:00:00\",\n" +
                "                \"CUST_NAME\": \"张士威\",\n" +
                "                \"ACT_NAME\": \"VoLTE业务营销活动\",\n" +
                "                \"SEQ_ID\": \"bb6e1d7b4bf1b31d7ba6db7e68060dea|20035135030|551|4142072275684352|4238249562704896|1009|POSITION_09_01\",\n" +
                "                \"ACT_BUSI_TYPE\": \"85\",\n" +
                "                \"CUST_GROUP_ID\": \"4238249562704896\",\n" +
                "                \"REGION_CODE\": \"551\",\n" +
                "                \"USER_LABEL_LIST\": [\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"套餐价值量\",\n" +
                "                    \"ORDER_NO\": 1,\n" +
                "                    \"USER_LABEL_KEY\": \"PRIM_CHRG_LEVEL\",\n" +
                "                    \"USER_LABEL_VALUE\": \"5\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"产品实例ID\",\n" +
                "                    \"ORDER_NO\": 2,\n" +
                "                    \"USER_LABEL_KEY\": \"PRD_INST_ID\",\n" +
                "                    \"USER_LABEL_VALUE\": \"20035135030\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"归并套餐ID\",\n" +
                "                    \"ORDER_NO\": 3,\n" +
                "                    \"USER_LABEL_KEY\": \"BASIC_PROD_OFFER_INST_ID\",\n" +
                "                    \"USER_LABEL_VALUE\": \"3170341700\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"归并套餐名称\",\n" +
                "                    \"ORDER_NO\": 4,\n" +
                "                    \"USER_LABEL_KEY\": \"BASIC_GROUP_NAME\",\n" +
                "                    \"USER_LABEL_VALUE\": \"201905-电信无忧卡201905\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"套餐名称\",\n" +
                "                    \"ORDER_NO\": 5,\n" +
                "                    \"USER_LABEL_KEY\": \"GROUP_NAME\",\n" +
                "                    \"USER_LABEL_VALUE\": \"201905-电信无忧卡201905\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"终端品牌\",\n" +
                "                    \"ORDER_NO\": 6,\n" +
                "                    \"USER_LABEL_KEY\": \"FACTORY_NAME\",\n" +
                "                    \"USER_LABEL_VALUE\": \"维沃\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"终端类型\",\n" +
                "                    \"ORDER_NO\": 7,\n" +
                "                    \"USER_LABEL_KEY\": \"TERM_TYPE\",\n" +
                "                    \"USER_LABEL_VALUE\": \"V1986A\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"是否游戏偏好\",\n" +
                "                    \"ORDER_NO\": 8,\n" +
                "                    \"USER_LABEL_KEY\": \"IF_GAME\",\n" +
                "                    \"USER_LABEL_VALUE\": \"否\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"提醒开通使用\",\n" +
                "                    \"ORDER_NO\": 9,\n" +
                "                    \"USER_LABEL_KEY\": \"FLAG\",\n" +
                "                    \"USER_LABEL_VALUE\": \"2\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"是否首次使用\",\n" +
                "                    \"ORDER_NO\": 10,\n" +
                "                    \"USER_LABEL_KEY\": \"IF_SCSY\",\n" +
                "                    \"USER_LABEL_VALUE\": \"1\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"服务号码\",\n" +
                "                    \"ORDER_NO\": 11,\n" +
                "                    \"USER_LABEL_KEY\": \"SERVICE_NBR\",\n" +
                "                    \"USER_LABEL_VALUE\": \"18119642738\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"本地网\",\n" +
                "                    \"ORDER_NO\": 12,\n" +
                "                    \"USER_LABEL_KEY\": \"LATN_ID\",\n" +
                "                    \"USER_LABEL_VALUE\": \"551\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"是否开通VOLTE功能\",\n" +
                "                    \"ORDER_NO\": 13,\n" +
                "                    \"USER_LABEL_KEY\": \"IF_KT_VOLTE\",\n" +
                "                    \"USER_LABEL_VALUE\": \"是\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"30天是否有VOLTE话单\",\n" +
                "                    \"ORDER_NO\": 14,\n" +
                "                    \"USER_LABEL_KEY\": \"IF_VOLTE_HD\",\n" +
                "                    \"USER_LABEL_VALUE\": \"否\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"兴趣分类\",\n" +
                "                    \"ORDER_NO\": 15,\n" +
                "                    \"USER_LABEL_KEY\": \"LABEL_TYPE\",\n" +
                "                    \"USER_LABEL_VALUE\": \"\"\n" +
                "                  }\n" +
                "                ]\n" +
                "              },\n" +
                "              {\n" +
                "                \"REWARD\": \"0\",\n" +
                "                \"ACT_ID\": \"5140360162937856\",\n" +
                "                \"CONTENT_LIST\": [\n" +
                "                  {\n" +
                "                    \"CONTENT_ID\": \"5279030793968647\",\n" +
                "                    \"ORDER_NO\": \"0\",\n" +
                "                    \"CONTENT_DETAIL_LIST\": [\n" +
                "                      {\n" +
                "                        \"PARAM_LIST\": [\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"MARKETING_DESCRIPTION\",\n" +
                "                            \"CONTENT_VALUE\": \"无\"\n" +
                "                          },\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"ACT_REDIRECT_TYPE\",\n" +
                "                            \"CONTENT_VALUE\": \"0\"\n" +
                "                          },\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"MATERIAL_CODE\"\n" +
                "                          }\n" +
                "                        ]\n" +
                "                      }\n" +
                "                    ]\n" +
                "                  }\n" +
                "                ],\n" +
                "                \"END_DATE\": \"2021-12-31 00:00:00\",\n" +
                "                \"ORDER_NO\": 3,\n" +
                "                \"ACT_DESC\": \"价值量和消费小于49元移动用户，流量语音使用较高、终端价格较高、有加副卡空间用户，升级39、59元步步高，或者叠加保底消费\",\n" +
                "                \"ACT_TYPE\": \"1000\",\n" +
                "                \"PRD_INST_ID\": \"20035135030\",\n" +
                "                \"SERVICE_NBR\": \"18119642738\",\n" +
                "                \"START_DATE\": \"2020-10-13 00:00:00\",\n" +
                "                \"CUST_NAME\": \"张士威\",\n" +
                "                \"ACT_NAME\": \"成长计划活动\",\n" +
                "                \"SEQ_ID\": \"bb6e1d7b4bf1b31d7ba6db7e68060dea|20035135030|551|5140360162937856|5140251915734016|1009|POSITION_09_01\",\n" +
                "                \"ACT_BUSI_TYPE\": \"95\",\n" +
                "                \"CUST_GROUP_ID\": \"5140251915734016\",\n" +
                "                \"REGION_CODE\": \"551\",\n" +
                "                \"USER_LABEL_LIST\": [\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"服务号码\",\n" +
                "                    \"ORDER_NO\": 1,\n" +
                "                    \"USER_LABEL_KEY\": \"service_nbr\",\n" +
                "                    \"USER_LABEL_VALUE\": \"18119642738\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"本地网\",\n" +
                "                    \"ORDER_NO\": 2,\n" +
                "                    \"USER_LABEL_KEY\": \"latn_id\",\n" +
                "                    \"USER_LABEL_VALUE\": \"551\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"主产品实例ID\",\n" +
                "                    \"ORDER_NO\": 3,\n" +
                "                    \"USER_LABEL_KEY\": \"prd_inst_id\",\n" +
                "                    \"USER_LABEL_VALUE\": \"20035135030\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"套餐价值量\",\n" +
                "                    \"ORDER_NO\": 4,\n" +
                "                    \"USER_LABEL_KEY\": \"prim_chrg_level\",\n" +
                "                    \"USER_LABEL_VALUE\": \"5\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"近3个月平均消费\",\n" +
                "                    \"ORDER_NO\": 5,\n" +
                "                    \"USER_LABEL_KEY\": \"net_fee\",\n" +
                "                    \"USER_LABEL_VALUE\": \"5.0\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"是否派单目标\",\n" +
                "                    \"ORDER_NO\": 6,\n" +
                "                    \"USER_LABEL_KEY\": \"if_pd\",\n" +
                "                    \"USER_LABEL_VALUE\": \"\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"可否一人一码加载\",\n" +
                "                    \"ORDER_NO\": 7,\n" +
                "                    \"USER_LABEL_KEY\": \"if_pd_yrym\",\n" +
                "                    \"USER_LABEL_VALUE\": \"1\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"推荐套餐档次\",\n" +
                "                    \"ORDER_NO\": 8,\n" +
                "                    \"USER_LABEL_KEY\": \"tar_chrg\",\n" +
                "                    \"USER_LABEL_VALUE\": \"39\"\n" +
                "                  }\n" +
                "                ]\n" +
                "              },\n" +
                "              {\n" +
                "                \"REWARD\": \"0\",\n" +
                "                \"ACT_ID\": \"4924839062309888\",\n" +
                "                \"CONTENT_LIST\": [\n" +
                "                  {\n" +
                "                    \"CONTENT_ID\": \"5279030793968649\",\n" +
                "                    \"ORDER_NO\": \"0\",\n" +
                "                    \"CONTENT_DETAIL_LIST\": [\n" +
                "                      {\n" +
                "                        \"PARAM_LIST\": [\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"MARKETING_DESCRIPTION\",\n" +
                "                            \"CONTENT_VALUE\": \"【策略】该用户已更换5G终端，套餐为5元201905-电信无忧卡201905，近三个月平均费用5.0元，推荐扫码升级129元5G套餐，享受更多优惠。 【话术】我们正在开展5G客户回馈活动，您已经更换5G手机，但您的套餐还是4G版，现在升级129元档套餐（8折），流量翻了一倍，全家一起用，享受5G高品质网络。\"\n" +
                "                          },\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"ACT_REDIRECT_TYPE\",\n" +
                "                            \"CONTENT_VALUE\": \"0\"\n" +
                "                          },\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"MATERIAL_CODE\"\n" +
                "                          }\n" +
                "                        ]\n" +
                "                      }\n" +
                "                    ]\n" +
                "                  }\n" +
                "                ],\n" +
                "                \"END_DATE\": \"2021-12-31 00:00:00\",\n" +
                "                \"ORDER_NO\": 4,\n" +
                "                \"ACT_DESC\": \"5G终端用户非5G套餐用户，含协议未到期。\",\n" +
                "                \"ACT_TYPE\": \"1000\",\n" +
                "                \"PRD_INST_ID\": \"20035135030\",\n" +
                "                \"SERVICE_NBR\": \"18119642738\",\n" +
                "                \"START_DATE\": \"2020-05-14 00:00:00\",\n" +
                "                \"CUST_NAME\": \"张士威\",\n" +
                "                \"ACT_NAME\": \"5G终端升5G套餐\",\n" +
                "                \"SEQ_ID\": \"bb6e1d7b4bf1b31d7ba6db7e68060dea|20035135030|551|4924839062309888|4924817093184512|1009|POSITION_09_01\",\n" +
                "                \"ACT_BUSI_TYPE\": \"95\",\n" +
                "                \"CUST_GROUP_ID\": \"4924817093184512\",\n" +
                "                \"REGION_CODE\": \"551\",\n" +
                "                \"USER_LABEL_LIST\": [\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"服务号码\",\n" +
                "                    \"ORDER_NO\": 1,\n" +
                "                    \"USER_LABEL_KEY\": \"service_nbr\",\n" +
                "                    \"USER_LABEL_VALUE\": \"18119642738\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"套餐名称\",\n" +
                "                    \"ORDER_NO\": 2,\n" +
                "                    \"USER_LABEL_KEY\": \"basic_group_name\",\n" +
                "                    \"USER_LABEL_VALUE\": \"201905-电信无忧卡201905\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"套餐赠送内容\",\n" +
                "                    \"ORDER_NO\": 3,\n" +
                "                    \"USER_LABEL_KEY\": \"ofr_zs_content\",\n" +
                "                    \"USER_LABEL_VALUE\": \"0分钟/0G\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"近3月套餐平均流量（M）\",\n" +
                "                    \"ORDER_NO\": 4,\n" +
                "                    \"USER_LABEL_KEY\": \"avg_flux_3m\",\n" +
                "                    \"USER_LABEL_VALUE\": \"0\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"近3月套餐平均主叫时长（分钟）\",\n" +
                "                    \"ORDER_NO\": 5,\n" +
                "                    \"USER_LABEL_KEY\": \"avg_dur_3m\",\n" +
                "                    \"USER_LABEL_VALUE\": \"0\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"补贴\",\n" +
                "                    \"ORDER_NO\": 6,\n" +
                "                    \"USER_LABEL_KEY\": \"btmc_date_flag\",\n" +
                "                    \"USER_LABEL_VALUE\": \"无\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"产品结构\",\n" +
                "                    \"ORDER_NO\": 7,\n" +
                "                    \"USER_LABEL_KEY\": \"cp_structure_flag\",\n" +
                "                    \"USER_LABEL_VALUE\": \"1移动+0宽带+0iTV\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"家庭手机号码数\",\n" +
                "                    \"ORDER_NO\": 8,\n" +
                "                    \"USER_LABEL_KEY\": \"weixin_nums\",\n" +
                "                    \"USER_LABEL_VALUE\": \"1\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"终端型号（含制式）\",\n" +
                "                    \"ORDER_NO\": 9,\n" +
                "                    \"USER_LABEL_KEY\": \"term_type\",\n" +
                "                    \"USER_LABEL_VALUE\": \"维沃VIV-V1986A(5G)\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"5G终端注册时间\",\n" +
                "                    \"ORDER_NO\": 10,\n" +
                "                    \"USER_LABEL_KEY\": \"reg_date\",\n" +
                "                    \"USER_LABEL_VALUE\": \"20201228\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"5G基站覆盖-套餐级\",\n" +
                "                    \"ORDER_NO\": 11,\n" +
                "                    \"USER_LABEL_KEY\": \"5g_mask_ofr\",\n" +
                "                    \"USER_LABEL_VALUE\": \"居住和工作地均覆盖\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"升5G套餐意愿\",\n" +
                "                    \"ORDER_NO\": 12,\n" +
                "                    \"USER_LABEL_KEY\": \"jz_prob\",\n" +
                "                    \"USER_LABEL_VALUE\": \"一般\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"智慧家庭需求\",\n" +
                "                    \"ORDER_NO\": 13,\n" +
                "                    \"USER_LABEL_KEY\": \"smart_family_flag\",\n" +
                "                    \"USER_LABEL_VALUE\": \"无\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"TOP流量APP\",\n" +
                "                    \"ORDER_NO\": 14,\n" +
                "                    \"USER_LABEL_KEY\": \"top_app_flux\",\n" +
                "                    \"USER_LABEL_VALUE\": \"未知\"\n" +
                "                  }\n" +
                "                ]\n" +
                "              },\n" +
                "              {\n" +
                "                \"REWARD\": \"0\",\n" +
                "                \"ACT_ID\": \"4933408136678400\",\n" +
                "                \"CONTENT_LIST\": [\n" +
                "                  {\n" +
                "                    \"CONTENT_ID\": \"5279030793968651\",\n" +
                "                    \"ORDER_NO\": \"0\",\n" +
                "                    \"CONTENT_DETAIL_LIST\": [\n" +
                "                      {\n" +
                "                        \"PARAM_LIST\": [\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"MARKETING_DESCRIPTION\",\n" +
                "                            \"CONTENT_VALUE\": \"无\"\n" +
                "                          },\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"ACT_REDIRECT_TYPE\",\n" +
                "                            \"CONTENT_VALUE\": \"0\"\n" +
                "                          },\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"MATERIAL_CODE\"\n" +
                "                          }\n" +
                "                        ]\n" +
                "                      }\n" +
                "                    ]\n" +
                "                  }\n" +
                "                ],\n" +
                "                \"END_DATE\": \"2021-12-31 00:00:00\",\n" +
                "                \"ORDER_NO\": 5,\n" +
                "                \"ACT_DESC\": \"活动目标用户为抽奖升五星/四星中5G终端且无协议或近1个月到期的目标用户 推送到掌厅营销推荐、欢go客户端\",\n" +
                "                \"ACT_TYPE\": \"1000\",\n" +
                "                \"PRD_INST_ID\": \"20035135030\",\n" +
                "                \"SERVICE_NBR\": \"18119642738\",\n" +
                "                \"START_DATE\": \"2020-05-20 00:00:00\",\n" +
                "                \"CUST_NAME\": \"张士威\",\n" +
                "                \"ACT_NAME\": \"4升5网掌厅专区活动\",\n" +
                "                \"SEQ_ID\": \"bb6e1d7b4bf1b31d7ba6db7e68060dea|20035135030|551|4933408136678400|4933371867466752|1009|POSITION_09_01\",\n" +
                "                \"ACT_BUSI_TYPE\": \"95\",\n" +
                "                \"CUST_GROUP_ID\": \"4933371867466752\",\n" +
                "                \"REGION_CODE\": \"551\",\n" +
                "                \"USER_LABEL_LIST\": [\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"服务号码\",\n" +
                "                    \"ORDER_NO\": 1,\n" +
                "                    \"USER_LABEL_KEY\": \"service_nbr\",\n" +
                "                    \"USER_LABEL_VALUE\": \"18119642738\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"套餐名称\",\n" +
                "                    \"ORDER_NO\": 2,\n" +
                "                    \"USER_LABEL_KEY\": \"basic_group_name\",\n" +
                "                    \"USER_LABEL_VALUE\": \"201905-电信无忧卡201905\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"近3个月平均消费（元）\",\n" +
                "                    \"ORDER_NO\": 3,\n" +
                "                    \"USER_LABEL_KEY\": \"net_fee\",\n" +
                "                    \"USER_LABEL_VALUE\": \"5.0\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"终端型号\",\n" +
                "                    \"ORDER_NO\": 4,\n" +
                "                    \"USER_LABEL_KEY\": \"term_type\",\n" +
                "                    \"USER_LABEL_VALUE\": \"维沃VIV-V1986A(5G)\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"套餐赠送内容\",\n" +
                "                    \"ORDER_NO\": 5,\n" +
                "                    \"USER_LABEL_KEY\": \"ofr_zs_content\",\n" +
                "                    \"USER_LABEL_VALUE\": \"0分钟/0G\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"近3月套餐平均主叫时长（分钟）\",\n" +
                "                    \"ORDER_NO\": 6,\n" +
                "                    \"USER_LABEL_KEY\": \"avg_dur_3m\",\n" +
                "                    \"USER_LABEL_VALUE\": \"0\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"近3月套餐平均流量（M）\",\n" +
                "                    \"ORDER_NO\": 7,\n" +
                "                    \"USER_LABEL_KEY\": \"avg_flux_3m\",\n" +
                "                    \"USER_LABEL_VALUE\": \"0\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"补贴\",\n" +
                "                    \"ORDER_NO\": 8,\n" +
                "                    \"USER_LABEL_KEY\": \"btmc_date_flag\",\n" +
                "                    \"USER_LABEL_VALUE\": \"无\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"产品结构\",\n" +
                "                    \"ORDER_NO\": 9,\n" +
                "                    \"USER_LABEL_KEY\": \"cp_structure_flag\",\n" +
                "                    \"USER_LABEL_VALUE\": \"1移动+0宽带+0iTV\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"宽带猫支持速率\",\n" +
                "                    \"ORDER_NO\": 10,\n" +
                "                    \"USER_LABEL_KEY\": \"cat_speed\",\n" +
                "                    \"USER_LABEL_VALUE\": \"500M\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"APP偏好\",\n" +
                "                    \"ORDER_NO\": 11,\n" +
                "                    \"USER_LABEL_KEY\": \"app_fav_flag\",\n" +
                "                    \"USER_LABEL_VALUE\": \"视频(轻微)/音乐(无)\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"升5G套餐意愿\",\n" +
                "                    \"ORDER_NO\": 12,\n" +
                "                    \"USER_LABEL_KEY\": \"jz_prob\",\n" +
                "                    \"USER_LABEL_VALUE\": \"一般\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"智慧家庭需求\",\n" +
                "                    \"ORDER_NO\": 13,\n" +
                "                    \"USER_LABEL_KEY\": \"smart_family_flag\",\n" +
                "                    \"USER_LABEL_VALUE\": \"无\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"迁转目标价值量\",\n" +
                "                    \"ORDER_NO\": 14,\n" +
                "                    \"USER_LABEL_KEY\": \"tar_chrg\",\n" +
                "                    \"USER_LABEL_VALUE\": \"129\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"终端礼包活动价值量\",\n" +
                "                    \"ORDER_NO\": 15,\n" +
                "                    \"USER_LABEL_KEY\": \"term_lb_chrg\",\n" +
                "                    \"USER_LABEL_VALUE\": \"\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"智家偏好\",\n" +
                "                    \"ORDER_NO\": 16,\n" +
                "                    \"USER_LABEL_KEY\": \"smart_family_fav\",\n" +
                "                    \"USER_LABEL_VALUE\": \"-1\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"折扣\",\n" +
                "                    \"ORDER_NO\": 17,\n" +
                "                    \"USER_LABEL_KEY\": \"zhekou\",\n" +
                "                    \"USER_LABEL_VALUE\": \"8折\"\n" +
                "                  }\n" +
                "                ]\n" +
                "              },\n" +
                "              {\n" +
                "                \"REWARD\": \"0\",\n" +
                "                \"ACT_ID\": \"4916303615740928\",\n" +
                "                \"CONTENT_LIST\": [\n" +
                "                  {\n" +
                "                    \"CONTENT_ID\": \"5279030793968653\",\n" +
                "                    \"ORDER_NO\": \"0\",\n" +
                "                    \"CONTENT_DETAIL_LIST\": [\n" +
                "                      {\n" +
                "                        \"PARAM_LIST\": [\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"MARKETING_DESCRIPTION\",\n" +
                "                            \"CONTENT_VALUE\": \"无\"\n" +
                "                          },\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"ACT_REDIRECT_TYPE\",\n" +
                "                            \"CONTENT_VALUE\": \"0\"\n" +
                "                          },\n" +
                "                          {\n" +
                "                            \"CONTENT_KEY\": \"MATERIAL_CODE\"\n" +
                "                          }\n" +
                "                        ]\n" +
                "                      }\n" +
                "                    ]\n" +
                "                  }\n" +
                "                ],\n" +
                "                \"END_DATE\": \"2021-12-31 00:00:00\",\n" +
                "                \"ORDER_NO\": 6,\n" +
                "                \"ACT_DESC\": \"承接集团漫游卡换卡指标，现将存量非自主漫游卡用户推送到省电渠网掌厅，线上触点根据策略平台派单进行判断\",\n" +
                "                \"ACT_TYPE\": \"1000\",\n" +
                "                \"PRD_INST_ID\": \"20035135030\",\n" +
                "                \"SERVICE_NBR\": \"18119642738\",\n" +
                "                \"START_DATE\": \"2020-05-08 00:00:00\",\n" +
                "                \"CUST_NAME\": \"张士威\",\n" +
                "                \"ACT_NAME\": \"自主漫游卡换卡活动\",\n" +
                "                \"SEQ_ID\": \"bb6e1d7b4bf1b31d7ba6db7e68060dea|20035135030|551|4916303615740928|4916353108298752|1009|POSITION_09_01\",\n" +
                "                \"ACT_BUSI_TYPE\": \"99\",\n" +
                "                \"CUST_GROUP_ID\": \"4916353108298752\",\n" +
                "                \"REGION_CODE\": \"551\",\n" +
                "                \"USER_LABEL_LIST\": [\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"移动号码\",\n" +
                "                    \"ORDER_NO\": 1,\n" +
                "                    \"USER_LABEL_KEY\": \"SERVICE_NBR\",\n" +
                "                    \"USER_LABEL_VALUE\": \"18119642738\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"本地网\",\n" +
                "                    \"ORDER_NO\": 2,\n" +
                "                    \"USER_LABEL_KEY\": \"LATN_ID\",\n" +
                "                    \"USER_LABEL_VALUE\": \"551\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"产品实例ID\",\n" +
                "                    \"ORDER_NO\": 3,\n" +
                "                    \"USER_LABEL_KEY\": \"PRD_INST_ID\",\n" +
                "                    \"USER_LABEL_VALUE\": \"20035135030\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"客户ID\",\n" +
                "                    \"ORDER_NO\": 4,\n" +
                "                    \"USER_LABEL_KEY\": \"OWN_CUST_ID\",\n" +
                "                    \"USER_LABEL_VALUE\": \"55153298853\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"账户ID\",\n" +
                "                    \"ORDER_NO\": 5,\n" +
                "                    \"USER_LABEL_KEY\": \"ACCT_ID\",\n" +
                "                    \"USER_LABEL_VALUE\": \"10004030117\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"集团自主漫游卡目标用户\",\n" +
                "                    \"ORDER_NO\": 6,\n" +
                "                    \"USER_LABEL_KEY\": \"C764\",\n" +
                "                    \"USER_LABEL_VALUE\": \"否\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"是否NFC卡\",\n" +
                "                    \"ORDER_NO\": 7,\n" +
                "                    \"USER_LABEL_KEY\": \"C778\",\n" +
                "                    \"USER_LABEL_VALUE\": \"否\"\n" +
                "                  },\n" +
                "                  {\n" +
                "                    \"USER_LABEL_NAME\": \"自主漫游新卡\",\n" +
                "                    \"ORDER_NO\": 8,\n" +
                "                    \"USER_LABEL_KEY\": \"C759\",\n" +
                "                    \"USER_LABEL_VALUE\": \"是\"\n" +
                "                  }\n" +
                "                ]\n" +
                "              }\n" +
                "            ],\n" +
                "            \"POSITION_ID\": \"POSITION_09_01\"\n" +
                "          }\n" +
                "        ]\n" +
                "      },\n" +
                "      \"RETURN_CODE\": \"0\",\n" +
                "      \"RETURN_MSG\": \"OK\",\n" +
                "      \"USER_MSG\": \"OK\",\n" +
                "      \"DETAIL_MSG\": \"OK\",\n" +
                "      \"RUN_IP\": \"172.17.59.3\",\n" +
                "      \"PROMPT_MSG\": \"\"\n" +
                "    }\n" +
                "  }\n" +
                "}";


//        JSONObject jsonObject = JSON.parseObject(jsonParam);
//        JSONObject root = jsonObject.getJSONObject("ROOT");
//        JSONObject body = root.getJSONObject("BODY");
//        JSONObject out_data = body.getJSONObject("OUT_DATA");
//        JSONArray position_info_list = out_data.getJSONArray("POSITION_INFO_LIST");
//        JSONObject obj = JSON.parseObject(position_info_list.get(0).toString());
//        JSONArray act_list = obj.getJSONArray("ACT_LIST");
//
//        List<String> act_ids = act_list.stream().map(item -> JSON.parseObject(item.toString()).get("ACT_ID").toString()).collect(Collectors.toList());
//
//        for (String act_id : act_ids) {
//            System.err.println(act_id);
//        }
        long startTime = System.currentTimeMillis();

//        String s1 = JSON.parseObject(jsonParam, HashMap.class).toString();
//        System.err.println(s1);

//        System.err.println(JSON.parseObject(jsonParam, HashMap.class));

        Map callBack=new  HashMap();
        JSONObject jasonObject =(JSONObject) JSONObject.parse(jsonParam.toString());
        callBack = (Map)jasonObject;

//        Map body = (Map) ((Map) callBack.get("ROOT")).get("BODY");
//
//        System.err.println(body);

//        Map body = (Map) ((Map) map.get("ROOT")).get("BODY");
//        System.err.println(body);

//        List<String> list = handleResultMap3(jsonParam);
        List<String> list = handleResultMap3(callBack.toString());
//        List<String> list2 = Arrays.asList("4841731711912960", "4924839062309888");
//        boolean b = list.contains("4841731711912960");
//        boolean b = list.containsAll(list2);
//        System.err.println(b);
//        for (String s : list) {
//            System.err.println(s);
//        }
//        list.add("4649352380828672");

        for (String s : list) {
            System.err.println(s);
        }

        Map<String, String> map = processData(list);
        map.forEach((k, v) -> {
            System.err.println(k + " - " + v);
        });

        long endTime = System.currentTimeMillis();
        System.err.println(endTime - startTime);


    }

    public static Map<String,String> processData(List<String> acts) {
        //浏览升五星活动 4841731711912960//4823382363819008
        String llswx = (acts.contains("4841731711912960") || acts.contains("4823382363819008")) ? "0" : "-1";
        //浏览加装副卡 4649352380828672//20170315084743102702052 订购加装副卡任务
        String lljzfk = (acts.contains("4649352380828672") || acts.contains("20170315084743102702052")) ? "0" : "-1";
        //浏览加装宽带 4649314288798720//4647788421516288//5061080545348608
        String lljzkd = (acts.contains("4649314288798720") || acts.contains("4647788421516288") || acts.contains("5061080545348608")) ? "0" : "-1";
        //浏览5G合约年包活动 4645949848947712
        String ll5ghynb = acts.contains("4645949848947712") ? "0" : "-1";
        Map<String,String> res = new HashMap<>();
        res.put("LL_SWX", llswx);res.put("LL_SPHYDXLLB", "0");res.put("LL_JZFK", lljzfk);
        res.put("LL_JZKD", lljzkd);res.put("LL_5GHYNB", ll5ghynb);res.put("LL_SJZQ", "0");
        res.put("LL_5GTC", "0");res.put("LL_XKSJB", "0");res.put("LL_ZHJT", "0");
        res.put("LL_5GRHKD", "0");res.put("LL_5GJKQY", "0");
        res.put("BB_TXZS", "0");res.put("BB_SPHYLLB", "0");res.put("BB_PLUSHYNB", "0");
        res.put("BB_SPCL", "0");res.put("BB_5GRHKD", "0");res.put("BB_JZFK", lljzfk);

        return res;
    }

    /*
        4841731711912960
        4142072275684352
        5140360162937856
        4924839062309888
        4933408136678400
        4916303615740928
     */

    private static String handleResultMap1(Map<String, Object> resultMap) {
        Map body = (Map) ((Map) resultMap.get("ROOT")).get("BODY");
        if ("0".equals(body.get("RETURN_CODE").toString())) {
            List PositionInfoList = (List) ((Map) body.get("OUT_DATA"))
                    .get("POSITION_INFO_LIST");
            List ACT_LIST = (List) ((Map) PositionInfoList.get(0))
                    .get("ACT_LIST");
            if (ACT_LIST != null && ACT_LIST.size() > 0) {
                return "1";
            } else {
                return "0";
            }
        }
        return "";
    }

    public static List<String> handleResultMap3(String resData) {
        JSONObject jsonObject = JSON.parseObject(resData);
        JSONObject root = jsonObject.getJSONObject("ROOT");
        JSONObject body = root.getJSONObject("BODY");
        JSONObject out_data = body.getJSONObject("OUT_DATA");
        JSONArray position_info_list = out_data.getJSONArray("POSITION_INFO_LIST");
        JSONObject obj = JSON.parseObject(position_info_list.get(0).toString());
        JSONArray act_list = obj.getJSONArray("ACT_LIST");
        return act_list.stream().
                map(item -> JSON.parseObject(item.toString()).get("ACT_ID").toString()).
                collect(Collectors.toList());
    }
}
